/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.ykkj.plant.base.detail.entity;

import com.fasterxml.jackson.annotation.JsonBackReference;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 植物详情管理Entity
 * @author Wrong
 * @version 2016-10-09
 */
public class PlantDetail extends DataEntity<PlantDetail> {
	
	private static final long serialVersionUID = 1L;
	private PlantDetail parent;		// 父编号
	private String nameCh;		// 中文名称
	private String nameLatin;		// 拉丁名
	private String detail;		// 详情
	private String remark;		// remark
	private String delFalg;		// del_falg
	public PlantDetail() {
		super();
	}

	public PlantDetail(String id){
		super(id);
	}

	@JsonBackReference
	public PlantDetail getParent() {
		return parent;
	}

	public void setParent(PlantDetail parent) {
		this.parent = parent;
	}
	
			
	@Length(min=0, max=150, message="中文名称长度必须介于 0 和 150 之间")
	public String getNameCh() {
		return nameCh;
	}

	public void setNameCh(String nameCh) {
		this.nameCh = nameCh;
	}
	
			
	@Length(min=0, max=150, message="拉丁名长度必须介于 0 和 150 之间")
	public String getNameLatin() {
		return nameLatin;
	}

	public void setNameLatin(String nameLatin) {
		this.nameLatin = nameLatin;
	}
	
			
	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}
	
			
	@Length(min=0, max=255, message="remark长度必须介于 0 和 255 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
			
	@Length(min=0, max=1, message="del_falg长度必须介于 0 和 1 之间")
	public String getDelFalg() {
		return delFalg;
	}

	public void setDelFalg(String delFalg) {
		this.delFalg = delFalg;
	}
	
			
}